import request from '@/utils/request'

// 查询指定分数运动处方配置列表
export function listPrescription(query) {
  return request({
    url: '/mobile/pointprescription/list',
    method: 'get',
    params: query
  })
}


export function listAllLesson(query) {
  return request({
    url: '/mobile/lesson/all',
    method: 'get',
    params: query
  })
}

// 查询指定分数运动处方配置详细
export function getPrescription(id) {
  return request({
    url: '/mobile/pointprescription/' + id,
    method: 'get'
  })
}

// 新增指定分数运动处方配置
export function addPrescription(data) {
  return request({
    url: '/mobile/pointprescription',
    method: 'post',
    data: data
  })
}

// 修改指定分数运动处方配置
export function updatePrescription(data) {
  return request({
    url: '/mobile/pointprescription',
    method: 'put',
    data: data
  })
}

// 删除指定分数运动处方配置
export function delPrescription(id) {
  return request({
    url: '/mobile/pointprescription/' + id,
    method: 'delete'
  })
}
